package com.alawn.framework.services.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Description
 * @auther johnny
 * @create 2019-02-26 15:07
 */
public enum UserStatus implements IEnum<Integer> {

	NORMAL(0, "normal"), UNACTIVATED(1, "unactivated"), FREEZE(2, "freeze"), LOCKED(3, "locked");

	private final int value;

	private final String name;

	private UserStatus(int value, String name) {
		this.value = value;
		this.name = name;
	}

	@Override
	public Integer getValue() {
		return this.value;
	}

	@JsonValue
	public String getName() {
		return this.name;
	}
}
